<?php 

return array(  
     'router' => array(
        'routes' => array(
            'sales' => array(
            	'type'    => 'Literal',
            	'options' => array(
            		'route'    => '/sales',
            		'defaults' => array(
            			'__NAMESPACE__' => 'Sales\Controller',
            			'controller'    => 'Index',
            			'action'        => 'index',
            	   ),
            	),
            	'may_terminate' => true,
            	'child_routes' => array(
            		'default' => array(
            			'type'    => 'Segment',
            			'options' => array(
            				'route'    => '/[:controller[/:action]]',
            				'constraints' => array(
            					'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
            					'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
            				),
            				'defaults' => array(
            	       		),
            		    ),
            		),
            	    'product' => array(
            	        'type'    => 'Literal',
            	        'options' => array(
            	        		'route'    => '/product',
            	        		'defaults' => array(
            	        				'__NAMESPACE__' => 'Sales\Controller',
            	        				'controller'    => 'Product',
            	        				'action'        => 'index',
            	        		),
            	        ),
            	        'may_terminate' => true,
            	        'child_routes' => array(
            	            
            	           'product-bundle' => array(
            	               'type'    => 'Literal',
            	               'options' => array(
            	               		'route'    => '/product-bundle',
            	                    'defaults' => array(
            	               				'__NAMESPACE__' => 'Sales\Controller',
            	               				'controller'    => 'ProductBundle',
            	               				'action'        => 'index',
            	               		),
            	               ),
            	               'may_terminate' => true,
            	               
            	               'child_routes' => array(
            	                   'default' => array(
            	               	       'type' => 'Segment',
            	                       'options' => array(
            	                   	       'route' => '[/:action]',
            	                           'constraints' => array(
            	                               '__NAMESPACE__' => 'Sales\Controller',
            	                               'controller' => 'ProductBundle',
            	                       	       'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
            	                           ),
            	                           'defaults' => array(),
            	                       ),
            	                   ),     
            	                   
            	                   'add' => array(
            	                       'type' => 'Literal',
            	                       'options' => array(
            	                   	       'route' => '/add',
            	                           'defaults' => array(
            	                               '__NAMESPACE__' => 'Sales\Controller',
            	                               'controller'    => 'ProductBundle',
            	                               'action'        => 'add'
            	                           ),
            	                       ),     	
            	                   ),	
            	                   
            	               ),
            	           ),			
            	        ),
            	    ),
            	    'leads' => array(
            	    		'type'    => 'Literal',
            	    		'options' => array(
            	    				'route'    => '/leads',
            	    				'defaults' => array(
            	    						'__NAMESPACE__' => 'Sales\Controller',
            	    						'controller'    => 'Leads',
            	    						'action'        => 'index',
            	    				),
            	    		),
            	    ),
            	    'customer' => array(
            	    		'type'    => 'Literal',
            	    		'options' => array(
            	    				'route'    => '/customer',
            	    				'defaults' => array(
            	    						'__NAMESPACE__' => 'Sales\Controller',
            	    						'controller'    => 'Customer',
            	    						'action'        => 'index',
            	    				),
            	    		),
            	    ),
                ),
            ),
        ),
    ),
    'controllers' => array(
        'invokables' => array(
            'Sales\Controller\Index' => 'Sales\Controller\IndexController',
            'Sales\Controller\Product' => 'Sales\Controller\ProductController',
            'Sales\Controller\Leads' => 'Sales\Controller\LeadsController',
            'Sales\Controller\ProductBundle' => 'Sales\Controller\ProductBundleController',
            'Sales\Controller\Customer' => 'Sales\Controller\CustomerController'
        ),
    ),
    'view_manager' => array(
        'template_path_stack' => array(
            'album' => __DIR__ . '/../view',
        ),
    ),
);